package com.itzjc.domain.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * TODO
 *
 * @className: FileFromCenter
 * @date: 2021-11-17 18:53
 **/
public class FileFromCenter implements Serializable {
    private Integer id;
    private String name;
    private String fileURL;
    private String domain;
    @JsonProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private Integer status;

    //有参、空参、set/get、toString

    @Override
    public String toString() {
        return "FileFromCenter{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", fileURL='" + fileURL + '\'' +
                ", domain='" + domain + '\'' +
                ", createTime=" + createTime +
                ", status=" + status +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFileURL() {
        return fileURL;
    }

    public void setFileURL(String fileURL) {
        this.fileURL = fileURL;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public FileFromCenter(Integer id, String name, String fileURL, String domain, Date createTime, Integer status) {
        this.id = id;
        this.name = name;
        this.fileURL = fileURL;
        this.domain = domain;
        this.createTime = createTime;
        this.status = status;
    }

    public FileFromCenter() {
    }
}
